package cn.com.mds.common.db;

public class DynamicDataSourceHolder {
	
	public static final ThreadLocal<String> holder = new ThreadLocal<String>();  
	  
    public static void putDataSource(String name) { 
    	System.out.println("设置数据库：" + name);
        holder.set(name);  
    }  
  
    public static String getDataSouce() {  
    	System.out.println("获取数据库：" + holder.get());
        return holder.get();  
    }  
}
